Log in Register Dashboard Temp Share Shortlinks Frames API

cody - HTMLify profile

cody's Profile Picture

cody

4270 Files

632705 Views

Latest files of /cody/swapnilsparsh/30DaysOfJavaScript/47 - Caesar Cipher

style.css cody/swapnilsparsh/30DaysOfJavaScript/47 - Caesar Cipher/style.css
111 Views
0 Comments
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
html{
display: table;
index.html cody/swapnilsparsh/30DaysOfJavaScript/47 - Caesar Cipher/index.html
314 Views
0 Comments
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
script.js cody/swapnilsparsh/30DaysOfJavaScript/47 - Caesar Cipher/script.js
174 Views
0 Comments

function main(x) { // x identifies from which button call is being made: Encrypt or Decrypt
var entry_text = document.getElementById('entry').value
var key_val = parseInt(document.getElementById('key').value) // Reading and storing both the inputs

// if (key_val < 0) {
// alert("Key value cannot be negative")
// }